<?php
/**
 * Created by PhpStorm.
 * User: jksen
 * Date: 2018/1/19
 * Time: 下午3:18
 */

namespace app\api\service;

use app\common\model\Widget as W;
use app\common\model\WidgetAction;
use app\common\model\FuncClass;
use think\Db;

class Widget
{
    public static function getWidgetInfoByIds($w_ids)
    {
        if (!empty($w_ids)) {
            return Db::name(W::$tab_name)
                ->alias('w')
                ->join('widget_action','w.action = widget_action.id','left')
                ->where('w.id','in',$w_ids)
                ->select();
        }
        return false;
    }
}